﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace Admin2020.Core.Domain.Core
{
    /// <summary>
    /// 角色s
    /// </summary>
    public class Roles:BaseEntity
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        [Column("role_name")]
        public string RoleName { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [Column("description")]
        public string Description { get; set; }

        /// <summary>
        /// 角色权限
        /// </summary>
        public ICollection<RolePermission> RolePermission { get; set; }

        /// <summary>
        /// 用户角色
        /// </summary>
        public ICollection<UserRole> UserRole { get; set; }
    }
}
